package ywpt.service.config;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.AssetsInfo;

public interface AssetsInfoService {

	public abstract AssetsInfo getAssetsInfoById(Long id);

	public abstract int getAssetsInfoCountByCriteria(DetachedCriteria query);

	public abstract List<AssetsInfo> getAssetsInfos(DetachedCriteria query, int pageSize, int startIndex);

	public abstract List<AssetsInfo> getAssetsInfos(DetachedCriteria query);
	
	public abstract void saveAssetsInfo(AssetsInfo assetsInfo, Long typeId, Long departId, Long peopleId);

	public abstract void updateAssetsInfo(AssetsInfo assetsInfo, Long typeId, Long departId, Long peopleId);

	public abstract void removeAssetsInfo(Long id);

	public abstract String creatAssetsNo();

}
